﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using YouHP.Utility;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace YouHP.BLL
{
    public class GraphParam
    {

        public int mType;

        public int mHeight = 300;
        public int mLegendWidth = 300;
        public int mDataWidth = 600;

        public int mMinCount;
        public int mGridCount = 20;
        //public List<GraphVariable> mVariables;
        public int mYAxisType;

        public Pen mGridPen;
        public Pen mXAxisPen;
        public Font mGridFont;
        public StringFormat mLabelFotmat;

        public DateTime MaxDateTime { get; set; }
        public DateTime MinDateTime { get; set; }

       

        public GraphParam()
        {
            mGridPen = new Pen(Color.Gray,0.5f);
            mGridPen.DashStyle = DashStyle.Dot;

            mXAxisPen = new Pen(Color.Black, 2f);
            mXAxisPen.CustomEndCap = new AdjustableArrowCap(4.0f, 6.0f);
            mGridFont = new Font("宋体", 8.0f);

           // mVariables = new List<GraphVariable>();
            mLabelFotmat = new StringFormat();
            mLabelFotmat.Alignment = StringAlignment.Center;
            mLabelFotmat.LineAlignment = StringAlignment.Near;
        }

        public Brush mRangeBrush;
        public void SetRangeColor(Color color)
        {
            mRangeBrush = new SolidBrush(color);
        }
    }

    
   
}

